//
//  PayManager.m
//  TestJSPay
//
//  Created by hongliang on 16/3/26.
//  Copyright © 2016年 hongliang. All rights reserved.
//

#import "PayManager.h"

@implementation PayManager
+ (BOOL)weChatPay:(WXPayData*)payData {
    if (![payData isKindOfClass:[WXPayData class]]) {
        return NO;
    }
    PayReq *request = [[PayReq alloc] init];
    request.partnerId = payData.partnerId;
    request.prepayId = payData.prepayId;
    request.package = payData.packageName;
    request.nonceStr = payData.noncestr;
    request.timeStamp = [payData.timestamp intValue];
    request.sign = payData.sign;
    
    return [WXApi sendReq:request];
}
@end
